home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_Tix.idb / usr / freeware / lib / tix4.1 / StatBar.tcl.z / StatBar.tcl
Encoding:
Text File  |  1999-01-26  |  1.1 KB  |  52 lines

  1. # StatBar.tcl --
  2. #
  3. #    The StatusBar of an application.
  4. #
  5. # Copyright (c) 1996, Expert Interface Technologies
  6. #
  7. # See the file "license.terms" for information on usage and redistribution
  8. # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  9. #
  10.  
  11. tixWidgetClass tixStatusBar {
  12.     -classname TixStatusBar
  13.     -superclass tixPrimitive
  14.     -method {
  15.     }
  16.     -flag {
  17.     -fields
  18.     }
  19.     -static {
  20.     -fields
  21.     }
  22.     -configspec {
  23.     {-fields fields Fields ""}
  24.     }
  25. }
  26.  
  27. #--------------------------
  28. # Create Widget
  29. #--------------------------
  30. proc tixStatusBar:ConstructWidget {w} {
  31.     upvar #0 $w data
  32.  
  33.     tixChainMethod $w ConstructWidget
  34.  
  35.     foreach field $data(-fields) {
  36.     set name  [lindex $field 0]
  37.     set width [lindex $field 1]
  38.  
  39.     set data(w:width) [label $w.$name -width $width]
  40.     }
  41. }
  42.  
  43.  
  44. #----------------------------------------------------------------------
  45. #                         Public methods
  46. #----------------------------------------------------------------------
  47.  
  48.  
  49. #----------------------------------------------------------------------
  50. #                         Internal commands
  51. #----------------------------------------------------------------------
  52.